<?php
namespace app\admin\controller;
use think\Controller;
use think\Db;
class Interfaces extends controller{
    function answer(){
        // 客服回复功能
        if (request()->isPost()){
            $reply = $_POST['reply'];
            $id = $_POST['id'];
            // if($reply==null) return 1;
            model("kefu")->where('id',$id)->update(['reply'=>$reply,"type"=>1]);
            return $this->redirect("admin/home/fot");
        }
     }
     function emptyresult(){
        // 清空报表信息
        $sql = "truncate table result";
        Db::execute($sql);
     }
     function delorder($id){
        if(!$id)return 0;
        $id = json_decode($id,true);
        for($i=0;$i<count($id);$i++){
            model('orders')->delete($id[$i]);
        }
        return 1;
     }
     function sentbuhuo($data){
        if(!$data)return 0;
        $data = json_decode($data,true);
        $id = session('adminid');
        $uid = model('user')->where('id',$id)->find();
        if($uid["replenishment"]==1)return 0;
        $topuser = $uid['topuser'];
        $datatime = model('openplate')->finddata();
        $da = model('openplate')->fuindata($datatime);
        if(time()>$da['tclosetime'])return 0;
        if(session('usertype')==1||!$uid)return 0;
        foreach ($data as $key => $item) {
            // mp($item);
            model("buhuo")->insert(['andicap'=>$item['andicap'],'colums'=>$item['colums'],'bet'=>$item['bet'],'bets'=>$item['bets'],'user_id'=>$id,'topuser'=>$topuser,'price'=>$item['price'],"datatime"=>$datatime]);
        }
        return 1;
     }
     function insts(){
        for($i=1;$i<=4;$i++){
                for($s=1;$s<=50;$s++){
                     $result[] = [
                        "uid" => 2,
                        "p" =>$i,
                        "n"=>$s,
                        "limitnum"=> 100000,
                        "limits"=>10000,
                        "reduce" => 0,
                        "ts"=>1.78
                     ];
                }
            }
        $sql = "insert into returnwater(uid,p,n,limitnum,limits,reduce,ts)values";
        foreach ($result as $key => $item) {
           $sql .= "('".$item['uid']."','".$item['p']."','".$item['n']."','".$item['limitnum']."','".$item['limits']."','".$item['reduce']."','".$item['ts']."'),";
        }
       $sql = rtrim($sql, ',');
       // Db::execute($sql); 
     }
     function emptyorder(){
        // 清空注单
        $sql = "truncate table orders";
        $sqk = "truncate table ordered";
        Db::execute($sql); Db::execute($sqk);
     }
     function updateuser($id,$password,$moneys,$andicap){
        // 用户修改资料接口
        if(!$id){
            return 0;
        }
        if($password){
            model('user')->where('id',$id)->update(['password'=>$password,'moneys'=>$moneys,"andicap"=>$andicap]);
            return 1;
        }else{
            model('user')->where('id',$id)->update(['moneys'=>$moneys,"andicap"=>$andicap]);
            return 1;
        }
        return 0;
     }
     function checkuser($username,$types){
        if($username){
            $topuser = session('adminid');
            $res = model('user')->findusername($username,$types,$topuser);
            return $res;
        }
        return 0;
     }
     function insertcaopanyuan($username,$password,$name,$roots){
        // 操盘员创建
        $res['topuser'] = session('adminid');
        $res['username'] = $username;
        $res['password'] = $password;
        $res['name'] = $name;
        $res['quanxian'] = $roos;
        $res['types'] = session('usertype');
        $res['status'] = 0;
        $res['bets']  = 1;
        model('user')->insert($res);
        return 1;
     }
     function updatecaopan($id,$username,$password,$name,$roots){
        // 操盘员修改
        if($id){
            return 0;
        }
        $res['username'] = $username;
        $res['password'] = $password;
        $res['name'] = $name;
        $res['quanxian'] = $roos;
        model('user')->where('id',$id)->update($res);
        return 1;
     }
     function deluser($id){
        // 删除用户
        model("user")->where('id',$id)->delete();
        return $this->redirect("admin/home/onlinepersonnel");
     }
     function setonejiangrate($id,$downrate,$topprice,$moneys){
        // 设置一个自动降赔率的
        if(!$id||!$downrate||!$topprice||!$moneys){
            return 0;
            exit();
        }
        model('jiangrate')->where('id',$id)->update(['topprice'=>$topprice,'moneys'=>$moneys,"downrate"=>$downrate]);
        return 1;
     }
     function setjiangrate($dat1,$dat2,$dat3){
        // 设置修改自动降赔率
         if(!$dat1||!$dat2||!$dat3){
            return 0;
            exit();
        }
        $dat1 = json_decode($dat1,true);
        $dat2 = json_decode($dat2,true);
        $dat3 = json_decode($dat3,true);
        foreach ($dat1 as $key1 => $item1) {
            $item1['topprice'] = '';
            foreach ($dat2 as $key2 => $item2) {
                if($item1['id']==$item2['id']){
                    $dat1[$key1]['moneys'] = $item2['moneys'];
                }
                foreach ($dat3 as $key3 => $item3) {
                      if($item1['id']==$item3['id']){
                        $dat1[$key1]['downrate'] = $item3['downrate'];
                    }  
                }
            }
        }
        foreach ($dat1 as $key => $it) {
            model('jiangrate')->where('id',$it['id'])->update(['topprice'=>$it['topprice'],'moneys'=>$it['moneys'],"downrate"=>$it['downrate']]);
        }
        return 1;
     }
     function delresult($id){
        // 开奖结果删除
        model("result")->where('id',$id)->delete();
        return $this->redirect("admin/home/plate");
     }
     function updatesystem($id,$content){
        // 系统修改设置接口 返回0失败，返回1成功
       if(!$id||!$content){
            return 0;
       }
        model('xitong')->where('id',$id)->update(['content'=>$content]);
        return 1;
     }
     function reduction($id){
        // 后台设置还原信用额度后台设置 1成功 0失败 
        if(!$id){
            return 0;
        }
        $use = model('user')->judgeusers(session('adminid'));
        if($use>0){
            $sul = model('user')->discover();
            foreach ($sul as $ky => $itme) {
                $xiaji = model('user')->findtopuser($itme['id']);
                if($xiaji){
                    $x = 0;
                    foreach ($xiaji as $ke => $sss) {
                        $x += $sss['moneys'];
                    }
                }else{
                    $x = 0;
                }
                model('user')->where('id',$sul[$ky]['id'])->update(['employ'=>$x]);
            }
             return 1;
        }else{
            return 0;
        }
     }
     function insernum7($num1,$num2,$num3,$num4,$num5,$num6,$num7,$datatime){
        //开奖号码录入 
        if(!$num1 || !$num2 || !$num3 || !$num4 || !$num5 || !$num6 || !$num7){
            return 0;
        }
        $r = model('result')->findatatime($datatime);
        if($r<1){
                $res["datatime"]=$datatime;
                $res['times']=time();
                $res['Zone']=$num1;
                $res['Ztwo']=$num2;
                $res['Zthree']=$num3;
                $res['Zfour']=$num4;
                $res['Zfive']=$num5;
                $res['Zsix']=$num6;
                $res['Zseven']=$num7;
                model('result')->insert($res);
                return 1;
                exit();
        }else if($r>0){
            $res1['times']=time();
            $res1['Zone']=$num1;
            $res1['Ztwo']=$num2;
            $res1['Zthree']=$num3;
            $res1['Zfour']=$num4;
            $res1['Zfive']=$num5;
            $res1['Zsix']=$num6;
            $res1['Zseven']=$num7;
            model('result')->where('datatime',$datatime)->update($res1);
            return 1;
            exit();
        }
     }

     
     function allsealing(){
        // 全部封盘设置
        $data = model('openplate')->finddata();
        if(!$data)return 0;
        $ss = [
            'type'=>0,
            "status"=>0,
            "tclosetime"=>time(),
            "zclosetime"=>time()
        ];
        model('openplate')->where('datetime',$data)->update($ss);
        return 1;
     }
     function ztsealing(){
        // 正特码封盘接口
        // 传入status=1是特码 0是正码  返回1成功  
       $data = model('openplate')->finddata();
       if(!$data)return 0;
       model('openplate')->where('datetime',$data)->update(['status'=>0,"zclosetime"=>time()]); 
       return 1;
     }
     function Tiren($id){
        // 踢人的接口 返回1成功 0失败
        // 踢线后不能登录 不能投注 需要后台设置
        if(!$id){
            return 0;
        }
        $res = model('user')->findid($id);
           if($res['tiren']==1){
                model('user')->where('id',$id)->update(['status'=>0,"tiren"=>0,'betes'=>1]);
                $this->success("踢线成功","admin/home/onlinepersonnel","",2);
                exit();
            } 
                $this->error("踢线失败","admin/home/onlinepersonnel","",2);
                exit();
     }
     function jianceuser($username){
        // 检测账号是否存在，1是存在，0是不存在
        $res = model("user")->findalls($username);
        return $res;
     }
     function redz($types){
        // 新增账号 返回1 新增成功；
        if($types){
            if($types==1){
                $r = model('user')->judgeusers(session('adminid'));
                if($r=0){
                    return 0;
                    exit();
                }
            }

            $topuser = 1;
           if(isset($_POST["topuser"])){
                $topuser = $_POST["topuser"];
            }
            if(!isset($_POST['andicap'])){
                $andicap=1111; 
            }else{
                $andicap = $_POST['andicap'];   
            }
            if(isset($_POST['replenishment'])){
                $replenishment = $_POST['replenishment'];
            }else{
                $replenishment = 1;
            }
            if(isset($_POST['company'])){
                $company =$_POST['company'];
            }else{
                $company = 2;
            }
            if(isset($_POST['zdtouzhu'])){
                $zdtouzhu = $_POST['zdtouzhu'];
            }else{
                $zdtouzhu = 2;
            }
            // 账号
            $res['username'] = $_POST['username'];
            // 名字
            $res['name'] = $_POST["name"];
            // 密码
            $res['password'] = $_POST['password'];
            // 上级
            $res["topuser"] = $topuser;
            // 信用额度
            $res['moneys'] = $_POST['moneys'];
            // 账户的类型1-7
            $res['types'] = $types;
            // 创建时间
            $res['stime'] = time();
            // 最低下注金额
            $res['company'] = $company;
            // 补货权限，0能 1不能补
            $res['replenishment'] = $replenishment;
            // 离线
            $res['status'] = 0;
            // 是否强制下线
            $res['tiren'] = 1;
            // 最低投注金额
            $res['zdtouzhu'] = $zdtouzhu;
            //默认可以投注
            $res['betes'] = 0;
            $res['andicap'] = $andicap;
            if($topuser!=1){
                $ss = model("user")->findid($topuser);
                $ss['moneys'] -= $res['moneys'];
                if($ss['moneys']<0){
                    return 2;
                    exit();
                } 
                model("user")->where('id',$ss['id'])->update(['employ',$ss['moneys']]);
            }
            model("user")->insert($res);
            $id= model("user")->getLastInsID();
            if($types==7){
                $u6 = model('user')->findid($topuser);
                $u5 = model('user')->findid($u6['id']);
                $u4 = model('user')->findid($u5['id']);
                $u3 = model('user')->findid($u4['id']);
                $u2 = model('user')->findid($u3['id']);
                $u1 = model('user')->findid($u2['id']);
                $o['user_id'] = $id;
                $o['daili'] = $u6['upoccupy'];
                $o['zongdai'] = $u5['upoccupy'];
                $o['gudong'] = $u4['upoccupy'];
                $o['dagudong'] = $u3['upoccupy'];
                $o['zongjian'] = $u2['upoccupy'];
                $o['houtai'] = $u1['upoccupy'];
                $num = intval($u6['upoccupy'])+intval($u5['upoccupy'])+intval($u4['upoccupy'])+intval($u3['upoccupy'])+intval($u2['upoccupy'])+intval($u1['upoccupy']);
                if($num<100){
                   $o['houtai'] += (100-$num);
                }
                model('occupy')->insert($o);
            }
            if($id){
                $this->insertTs($id);
                return 1;
                exit();
            }
            return 0; 
        }
        
     }
     function shtopbets($id){
        // 停止投注功能 返回1成功 0不成功
        if($id){
            model("user")->where('id',$id)->update(['betes'=>1]);
            return 1;
        }
        return 0 ;
     }

     function recoveronline($id){
         // 恢复在线的接口 返回1成功 0失败
        $s = model('user')->findtopuser(session('adminid'));
        if($s['types']==1){
            $res = model('user')->findtopuser($id);
            if($res['tiren']==0){
                    model('user')->where('id',$id)->update(["tiren"=>1]);
                    return 1;
                    exit();
                }
                return 0;
            }
     }

     function fotdelet($id){
        // 客服删除功能
        model("kefu")->where('id',$id)->delete();
        return $this->redirect("admin/home/fot");
     }
     
     function setsx($data){
        // 系统设置生肖
        if(!$data){
            return 0;
        }
        $data = json_decode($data,true);
        foreach ($data as $key => $item) {
            // mp($item);
            model("zodiac")->where('id',$item['id'])->update(['sx'=>$item['sx']]);
        }
        return 1;
     }
     function setplate($datetime,$tclosetime,$zclosetime,$opentime,$id){
        // 设置开封盘
        if(!$datetime || !$tclosetime || !$zclosetime || !$opentime || !$id){
            return 0;
        }
        // echo $opentime.",".$zclosetime.",".$tclosetime;
        // exit();
        $ss= model('openplate')->findid($id);
        if($ss<1){
            $res['name'] = $this->getTimeWeek($opentime);
            $res['opentime'] = $opentime;
            $res['zclosetime'] = $zclosetime;
            $res['tclosetime'] = $tclosetime;
            $res['datetime'] = $datetime;
            model('openplate')->insert($res);
            return 1;
        }
        
        $res['name'] = $this->getTimeWeek($opentime);
        $res['opentime'] = $opentime;
        $res['zclosetime'] = $zclosetime;
        $res['tclosetime'] = $tclosetime;
        $res['datetime'] = $datetime;
        model('openplate')->where('id',$id)->update($res);
        return 1;
     }
     function getTimeWeek($time, $i = 0) {
        $w = date('w', $time);
        if($w==0)return"日";
        if($w==1)return"一";
        if($w==2)return"二";
        if($w==3)return"三";
        if($w==4)return"四";
        if($w==5)return"五";
        if($w==6)return"六";
      // $weekarray = array("一", "二", "三", "四", "五", "六", "日");
      // $oneD = 24 * 60 * 60;
      // return $weekarray[date("w", $time + $oneD * ($i-1))];
    }
     function settemara($data){
        // 设置赔率
        if(!$data){
            return 0;
        }
        $data = json_decode($data,true);
        foreach ($data as $key => $item) {
            // mp($item);
            model("rate")->where('andicap',$item['andicap'])->where('colums',$item['colums'])->where('bets',$item['bets'])->where('bet',$item['bet'])->update(['ra'=>$item['ra']]);
        }
        return 1;
     }
     function setpancha($data){
        // 设置盘差
         if(!$data){
            return 0;
        }
        $data = json_decode($data,true);
         foreach ($data as $key => $item) {
            if(isset($item['andicapB'])){
                model("pancha")->where('id',$item['id'])->update(['andicapB'=>$item['andicapB']]);
            }
            if(isset($item['andicapC'])){
                model("pancha")->where('id',$item['id'])->update(['andicapC'=>$item['andicapC']]);
            }
            if(isset($item['andicapD'])){
                model("pancha")->where('id',$item['id'])->update(['andicapD'=>$item['andicapD']]);
            }
        }
        return 1;
     }
     function setbuzhong($data){
        if(!$data){
            return 0;
        }
        $data = json_decode($data,true);
        foreach ($data as $key => $item) {
            // mp($item);
            model("rate")->where('andicap',1)->where('colums',$item['colums'])->where('bet',$item['bet'])->update(['ra'=>$item['ra']]);
        }
        return 1;
     }
  
     function setandicap($numbers){
        // 设置特码AB的差值
        $sql = "insert into rate (id,ra) values";
        $resultA = model("rate")->findrates();
        $resultB = model("rate")->findrateB();
        for($i=0;$i<count($resultA);$i++){
            // echo $resultA[0]['ra'];
            for($j=0;$j<count($resultB);$j++){
                $res[$i]['ra'] = $resultA[$i]['ra'] + $numbers;
                $sql .= "(".$resultB[$j]['id'].",".$res[$i]['ra']."),";
            }
        }
        $sql = rtrim($sql, ','); 
        // mp($sql);
        $sql = $sql."on duplicate key update ra=values(ra)";
       // mp($sql);
        Db::execute($sql);
        return $this->redirect('admin/Home/oddstema');
     }
     // 查询赔率设置
     function checkrate($andicap=1){
        $result = model("rate")->findandicap($andicap);
        $this->assign('result',$result);
        return $this->fetch();
     }
     function insernumber($data){
        // 插入开奖号码录入 1成功 0失败
        if(!$data){
            return 0;
        }
        $data = json_decode($data,true);
        model('result')->insert($data);
        return 1;
     }
     function addnotice(){
        // 增加公告功能
        if (request()->isPost()){
            $result['content'] = $_POST['content'];
            $result['status'] = $_POST['status'];
            $result['times'] = time();
            model("Announce")->insert($result);
            return $this->redirect('admin/Home/Notice');
        }
     }
    function delnotice(){
        //删除广告
        if (request()->isGet()){
            $id = $_GET['id'];
            model("Announce")->where('id',$id)->delete();
            echo "success";
            exit();
        }
        echo 1;
        exit();
    }
    function updatestatus($id){
        // 后台踢线功能
        $r = findhoutai(session('adminid'));
        if($r==true){
            model('user')->where('id',$id)->update(['status'=>0]);
            exit();
        }
        return false;
    }
    function updatenotice(){
        // 修改广告
        if (request()->isPost()){
            $id = $_POST['id'];
            $content = $_POST['content'];
            $status = $_POST['status'];
            model("Announce")->where('id',$id)->update(['content'=>$content,'status'=>$status]);
            echo "success";
            exit();
        }
        echo 1;
        exit();
    }


    function inserpancha(){
        for ($i=0; $i < 49; $i++) { 
            $result[] = [
            "andicapB"=>0,
            "andicapC"=>0,
            "andicapD"=>0
            ];
        }
        $sql = "insert into pancha(andicapB,andicapC,andicapD) values";
        foreach ($result as $key => $item) {
           $sql .= "('".$item['andicapB']."','".$item['andicapC']."','".$item['andicapD']."'),";
        }
        $sql = rtrim($sql, ','); 
        // Db::execute($sql);
    }
    // 插入生肖
      function insertTs($uid){
                     $data[] = [
                        "ts2"=>4.2,
                        "ts3"=>5.2,
                        'ts4'=>1,
                        "n"=>1,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>30000,
                        'ts'=>3.2,
                        'reduce'=>0,
                        'name'=>"特码B"
                    ];
                     $data[] = [
                        "ts2"=>14.2,
                        "ts3"=>15.2,
                        'ts4'=>1,
                        "n"=>2,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>30000,
                        'ts'=>13.2,
                        'reduce'=>0,
                        'name'=>"特码A"
                    ];
                     $data[] = [
                        "ts2"=>2.35,
                        "ts3"=>3.35,
                        'ts4'=>5,
                        "n"=>3,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>1.35,
                        'reduce'=>0,
                        'name'=>"特码单双"
                    ];
                     $data[] = [
                        "ts2"=>2.35,
                        "ts3"=>3.35,
                        'ts4'=>5,
                        "n"=>4,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>1.35,
                        'reduce'=>0,
                        'name'=>"特码大小"
                    ];
                     $data[] = [
                        "ts2"=>2.35,
                        "ts3"=>3.353,
                        'ts4'=>5,
                        "n"=>5,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>1.35,
                        'reduce'=>0,
                        'name'=>"特码合码单双"
                    ];
                     $data[] = [
                        "ts2"=>12.3,
                        "ts3"=>13.3,
                        'ts4'=>11.3,
                        "n"=>6,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>11.3,
                        'reduce'=>0,
                        'name'=>"正码"
                    ];
                     $data[] = [
                        "ts2"=>2.35,
                        "ts3"=>3.35,
                        'ts4'=>6,
                        "n"=>7,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>1.35,
                        'reduce'=>0,
                        'name'=>"总和单双"
                    ];
                     $data[] = [
                        "ts2"=>2.35,
                        "ts3"=>3.35,
                        'ts4'=>6,
                        "n"=>8,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>1.35,
                        'reduce'=>0,
                        'name'=>"总和大小"
                    ];
                     $data[] = [
                        "ts2"=>1.8,
                        "ts3"=>1.8,
                        'ts4'=>1.8,
                        "n"=>9,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>1.8,
                        'reduce'=>0,
                        'name'=>"特码色波"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>10,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"特码生肖"
                    ];
                     $data[] = [
                        "ts2"=>2.35,
                        "ts3"=>3.35,
                        'ts4'=>6,
                        "n"=>11,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>1.35,
                        'reduce'=>0,
                        'name'=>"正码1-6单双"
                    ];
                     $data[] = [
                        "ts2"=>2.35,
                        "ts3"=>3.35,
                        'ts4'=>6,
                        "n"=>12,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>1.35,
                        'reduce'=>0,
                        'name'=>"正码1-6大小"
                    ];
                     $data[] = [
                        "ts2"=>1.8,
                        "ts3"=>1.8,
                        'ts4'=>1.8,
                        "n"=>13,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>1.8,
                        'reduce'=>0,
                        'name'=>"正码1-6色波"
                    ];
                     $data[] = [
                        "ts2"=>2.35,
                        "ts3"=>3.35,
                        'ts4'=>6,
                        "n"=>14,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>1.35,
                        'reduce'=>0,
                        'name'=>"正码1-6合单双"
                    ];
                     $data[] = [
                        "ts2"=>1.8,
                        "ts3"=>1.8,
                        'ts4'=>1.8,
                        "n"=>15,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>1.8,
                        'reduce'=>0,
                        'name'=>"半波"
                    ];
                     $data[] = [
                        "ts2"=>3.3,
                        "ts3"=>4.3,
                        'ts4'=>1,
                        "n"=>16,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>2.3,
                        'reduce'=>0,
                        'name'=>"多肖"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>17,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"一肖[中]"
                    ];
                     $data[] = [
                        "ts2"=>0.3,
                        "ts3"=>0.3,
                        'ts4'=>0.3,
                        "n"=>18,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>0.3,
                        'reduce'=>0,
                        'name'=>"尾数"
                    ];
                     $data[] = [
                        "ts2"=>15.05,
                        "ts3"=>15.05,
                        'ts4'=>15.05,
                        "n"=>19,
                        'uid'=>$uid,
                        'limitnum'=>10000,
                        'limits'=>1000,
                        'ts'=>15.05,
                        'reduce'=>0,
                        'name'=>"三全中"
                    ];
                     $data[] = [
                        "ts2"=>15.05,
                        "ts3"=>15.05,
                        'ts4'=>15.05,
                        "n"=>20,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>5000,
                        'ts'=>15.05,
                        'reduce'=>0,
                        'name'=>"三中二"
                    ];
                     $data[] = [
                        "ts2"=>15.05,
                        "ts3"=>15.05,
                        'ts4'=>15.05,
                        "n"=>21,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>5000,
                        'ts'=>15.05,
                        'reduce'=>0,
                        'name'=>"二全中"
                    ];
                     $data[] = [
                        "ts2"=>15.05,
                        "ts3"=>15.05,
                        'ts4'=>15.05,
                        "n"=>22,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>5000,
                        'ts'=>15.05,
                        'reduce'=>0,
                        'name'=>"二中特"
                    ];
                     $data[] = [
                        "ts2"=>15.05,
                        "ts3"=>15.05,
                        'ts4'=>15.05,
                        "n"=>23,
                        'uid'=>$uid,
                        'limitnum'=>10000,
                        'limits'=>5000,
                        'ts'=>15.05,
                        'reduce'=>0,
                        'name'=>"特串"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>24,
                        'uid'=>$uid,
                        'limitnum'=>50000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"七色波"
                    ];
                     $data[] = [
                        "ts2"=>14.3,
                        "ts3"=>15.3,
                        'ts4'=>1,
                        "n"=>25,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>13.3,
                        'reduce'=>0,
                        'name'=>"正码特"
                    ];
                     $data[] = [
                        "ts2"=>3.3,
                        "ts3"=>4.3,
                        'ts4'=>6,
                        "n"=>26,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>2.3,
                        'reduce'=>0,
                        'name'=>"特码合码大小"
                    ];
                     $data[] = [
                        "ts2"=>3.3,
                        "ts3"=>4.3,
                        'ts4'=>6,
                        "n"=>27,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>2.3,
                        'reduce'=>0,
                        'name'=>"特码合码单双"
                    ];
                     $data[] = [
                        "ts2"=>2.3,
                        "ts3"=>2.3,
                        'ts4'=>2.3,
                        "n"=>28,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>2.3,
                        'reduce'=>0,
                        'name'=>"特码半特"
                    ];
                     $data[] = [
                        "ts2"=>2.3,
                        "ts3"=>2.3,
                        'ts4'=>2.3,
                        "n"=>29,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>2.3,
                        'reduce'=>0,
                        'name'=>"特码头数"
                    ];
                     $data[] = [
                        "ts2"=>2.3,
                        "ts3"=>2.3,
                        'ts4'=>2.3,
                        "n"=>30,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>2.3,
                        'reduce'=>0,
                        'name'=>"特码尾数"
                    ];
                     $data[] = [
                        "ts2"=>2.3,
                        "ts3"=>2.3,
                        'ts4'=>2.3,
                        "n"=>31,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>2.3,
                        'reduce'=>0,
                        'name'=>"总肖"
                    ];
                     $data[] = [
                        "ts2"=>3.3,
                        "ts3"=>4.3,
                        'ts4'=>2.3,
                        "n"=>32,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>2.3,
                        'reduce'=>0,
                        'name'=>"总肖单双"
                    ];
                     $data[] = [
                        "ts2"=>2.3,
                        "ts3"=>2.3,
                        'ts4'=>2.3,
                        "n"=>33,
                        'uid'=>$uid,
                        'limitnum'=>500000,
                        'limits'=>500000,
                        'ts'=>2.3,
                        'reduce'=>0,
                        'name'=>"正肖"
                    ];
                     $data[] = [
                        "ts2"=>1.5,
                        "ts3"=>1.5,
                        'ts4'=>1.5,
                        "n"=>34,
                        'uid'=>$uid,
                        'limitnum'=>50000,
                        'limits'=>50000,
                        'ts'=>2.3,
                        'reduce'=>0,
                        'name'=>"连肖"
                    ];
                     $data[] = [
                        "ts2"=>2.3,
                        "ts3"=>2.3,
                        'ts4'=>2.3,
                        "n"=>35,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>50000,
                        'ts'=>2.3,
                        'reduce'=>0,
                        'name'=>"正码过关"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>36,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"5不中"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>37,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"6不中"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>38,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"7不中"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>39,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"8不中"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>40,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"9不中"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>41,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"10不中"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>42,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"11不中"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>43,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"12不中"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>44,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"3中一"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>45,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"4中一"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>46,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"5中一"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>47,
                        'uid'=>$uid,
                        'limitnum'=>100000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"6中一"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>48,
                        'uid'=>$uid,
                        'limitnum'=>200000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"一肖[不中]"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>49,
                        'uid'=>$uid,
                        'limitnum'=>50000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"尾数连"
                    ];
                     $data[] = [
                        "ts2"=>1.3,
                        "ts3"=>1.3,
                        'ts4'=>1.3,
                        "n"=>50,
                        'uid'=>$uid,
                        'limitnum'=>50000,
                        'limits'=>50000,
                        'ts'=>1.3,
                        'reduce'=>0,
                        'name'=>"七码"
                       ];
         $sql = "insert into returnwater(ts2,ts3,ts4,n,uid,limitnum,limits,ts,reduce,name) values";
        foreach ($data as $key => $item) {
           $sql .= "('".$item['ts2']."','".$item['ts3']."','".$item['ts4']."','".$item['n']."','".$item['uid']."','".$item['limitnum']."','".$item['limits']."','".$item['ts']."','".$item['reduce']."','".$item['name']."'),";
        }
       $sql = rtrim($sql, ','); 
       Db::execute($sql);
    }
    // 插入数据测试 andicap盘口 bet目录 colums分目录 bets个体 ra赔率
    function insertsMysql(){
        for($j=1;$j<=15;$j++){
            if($j==1){
                 for($i=1;$i<=49;$i++){
                    for($s=1;$s<=2;$s++){
                           $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>42.25,
                            "morerate"=>42.25,
                            "restricts"=>100000,
                            "name"=>$i
                        ];  
                    }
                } 
                for($z=50;$z<=70;$z++){
                    if($z==50){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.95,
                            "morerate"=>1.95,
                            "restricts"=>100000,
                            "name"=>"特尾大"
                        ];
                    }
                    if($z==51){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"特尾小"
                        ];
                    }
                    if($z==52){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"特单"
                        ];
                    }
                    if($z==53){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"特双"
                        ];
                    }
                    if($z==54){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"特大"
                        ];
                    }
                    if($z==55){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"特小"
                        ];
                    }
                    if($z==56){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"合单"
                        ];
                    }
                    if($z==57){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"合双"
                        ];
                    }
                    if($z==58){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"总单"
                        ];
                    }
                    if($z==59){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"总双"
                        ];
                    }
                    if($z==60){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"总大"
                        ];
                    }
                    if($z==61){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"总小"
                        ];
                    }
                    if($z==62){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.807,
                            "morerate"=>1.807,
                            "restricts"=>100000,
                            "name"=>"红"
                        ];
                    }
                    if($z==63){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>2.98,
                            "morerate"=>2.98,
                            "restricts"=>100000,
                            "name"=>"蓝"
                        ];
                    }
                    if($z==64){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>2.98,
                            "morerate"=>2.98,
                            "restricts"=>100000,
                            "name"=>"绿"
                        ];
                    }
                    if($z==65){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"合大"
                        ];
                    }
                    if($z==66){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"合小"
                        ];
                    }
                    if($z==67){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"大单"
                        ];
                    }
                    if($z==68){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"大双"
                        ];
                    }
                    if($z==69){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"小单"
                        ];
                    }
                    if($z==70){
                        $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>1,
                            "bets"=>$z,
                            "ra"=>1.967,
                            "morerate"=>1.967,
                            "restricts"=>100000,
                            "name"=>"小双"
                        ];
                    }
                }
            }
            if($j==2){
                for($i=1;$i<=49;$i++){
                    for($s=1;$s<=1;$s++){
                           $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>7.2,
                            "morerate"=>7.2,
                            "restricts"=>100000,
                            "name"=>$i
                        ];  
                    }
                } 
            }
           if($j==3){
                for($i=1;$i<=49;$i++){
                    for($s=1;$s<=6;$s++){
                           $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>42.22,
                            "morerate"=>42.22,
                            "restricts"=>100000,
                            "name"=>$i
                        ];  
                    }
                } 
            }
            if($j==4){
                for($i=1;$i<=54;$i++){
                    if($i==1||$i==10||$i==19||$i==28||$i==37||$i==46){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.783,
                                "morerate"=>2.783,
                                "restricts"=>100000,
                                "name"=>"单"
                            ];  
                        } 
                    }
                    if($i==2||$i==11||$i==20||$i==29||$i==38||$i==47){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.783,
                                "morerate"=>2.783,
                                "restricts"=>100000,
                                "name"=>"双"
                            ];  
                        } 
                    }
                    if($i==3||$i==12||$i==21||$i==30||$i==39||$i==48){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.783,
                                "morerate"=>2.783,
                                "restricts"=>100000,
                                "name"=>"大"
                            ];  
                        } 
                    }
                    if($i==4||$i==13||$i==22||$i==31||$i==40||$i==49){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.783,
                                "morerate"=>2.783,
                                "restricts"=>100000,
                                "name"=>"小"
                            ];  
                        } 
                    }
                    if($i==5||$i==14||$i==23||$i==32||$i==41||$i==50){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.783,
                                "morerate"=>2.783,
                                "restricts"=>100000,
                                "name"=>"红"
                            ];  
                        } 
                    }
                    if($i==6||$i==15||$i==24||$i==33||$i==42||$i==51){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.783,
                                "morerate"=>2.783,
                                "restricts"=>100000,
                                "name"=>"蓝"
                            ];  
                        } 
                    }
                    if($i==7||$i==16||$i==25||$i==34||$i==43||$i==52){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.783,
                                "morerate"=>2.783,
                                "restricts"=>100000,
                                "name"=>"绿"
                            ];  
                        } 
                    }
                    if($i==8||$i==17||$i==26||$i==35||$i==44||$i==53){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.783,
                                "morerate"=>2.783,
                                "restricts"=>100000,
                                "name"=>"合单"
                            ];  
                        } 
                    }
                    if($i==9||$i==18||$i==27||$i==36||$i==45||$i==54){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.783,
                                "morerate"=>2.783,
                                "restricts"=>100000,
                                "name"=>"合双"
                            ];  
                        } 
                    }
                } 
            }




            if($j==5){
                for($i=1;$i<=78;$i++){
                    if($i==1||$i==14||$i==27||$i==40||$i==53||$i==66){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"大"
                            ];  
                        } 
                    }
                    if($i==2||$i==15||$i==28||$i==41||$i==54||$i==67){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"小"
                            ];  
                        } 
                    }
                    if($i==3||$i==16||$i==29||$i==42||$i==55||$i==68){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"单"
                            ];  
                        } 
                    }
                    if($i==4||$i==17||$i==30||$i==43||$i==56||$i==69){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"双"
                            ];  
                        } 
                    }
                    if($i==5||$i==18||$i==31||$i==44||$i==57||$i==70){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.5,
                                "morerate"=>2.5,
                                "restricts"=>100000,
                                "name"=>"红"
                            ];  
                        } 
                    }
                    if($i==6||$i==19||$i==32||$i==45||$i==58||$i==71){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.75,
                                "morerate"=>2.75,
                                "restricts"=>100000,
                                "name"=>"蓝"
                            ];  
                        } 
                    }
                    if($i==7||$i==20||$i==33||$i==46||$i==59||$i==72){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.75,
                                "morerate"=>2.75,
                                "restricts"=>100000,
                                "name"=>"绿"
                            ];  
                        } 
                    }
                    if($i==8||$i==21||$i==34||$i==47||$i==60||$i==73){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"合大"
                            ];  
                        } 
                    }
                    if($i==9||$i==22||$i==35||$i==48||$i==61||$i==74){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"合小"
                            ];  
                        } 
                    }
                    if($i==10||$i==23||$i==36||$i==49||$i==62||$i==75){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"合单"
                            ];  
                        } 
                    }
                    if($i==11||$i==24||$i==37||$i==50||$i==63||$i==76){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"合双"
                            ];  
                        } 
                    }
                    if($i==12||$i==25||$i==38||$i==51||$i==64||$i==77){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.783,
                                "morerate"=>2.783,
                                "restricts"=>100000,
                                "name"=>"尾大"
                            ];  
                        } 
                    }
                    if($i==13||$i==26||$i==39||$i==52||$i==65||$i==78){
                           for($s=1;$s<=1;$s++){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"尾小"
                            ];  
                        } 
                    }
                } 
            }
            if($j==6){
                for($i=1;$i<=27;$i++){
                    for($s=1;$s<=1;$s++){
                        if($i==1){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>"鼠"
                            ]; 
                        }
                       if($i==2){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>"牛"
                            ]; 
                        }
                        if($i==3){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>"虎"
                            ]; 
                        }
                        if($i==4){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>"兔"
                            ]; 
                        }
                        if($i==5){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>"龙"
                            ]; 
                        }
                        if($i==6){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>"蛇"
                            ]; 
                        }
                        if($i==7){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>"马"
                            ]; 
                        }
                        if($i==8){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>"羊"
                            ]; 
                        }
                        if($i==9){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>"猴"
                            ]; 
                        }
                        if($i==10){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>"鸡"
                            ]; 
                        }
                        if($i==11){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>"狗"
                            ]; 
                        }
                        if($i==12){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>"猪"
                            ]; 
                        }
                        if($i==13){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>'0头'
                            ]; 
                        }
                        if($i==14){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>'1头'
                            ]; 
                        }
                        if($i==15){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>'2头'
                            ]; 
                        }
                        if($i==16){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>'3头'
                            ]; 
                        }
                        if($i==17){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>'4头'
                            ]; 
                        }
                        if($i==18){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>'0尾'
                            ]; 
                        }
                        if($i==19){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>'1尾'
                            ]; 
                        }
                        if($i==20){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>'2尾'
                            ]; 
                        }if($i==21){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>'3尾'
                            ]; 
                        }
                        if($i==22){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>'4尾'
                            ]; 
                        }
                        if($i==23){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>'5尾'
                            ]; 
                        }
                        if($i==24){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>'6尾'
                            ]; 
                        }
                        if($i==25){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>'7尾'
                            ]; 
                        }
                        if($i==26){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>'8尾'
                            ]; 
                        }
                        if($i==27){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>12,
                                "morerate"=>12,
                                "restricts"=>100000,
                                "name"=>'9尾'
                            ]; 
                        }

                    }
                } 
            }
            if($j==7){
                for($i=1;$i<=49;$i++){
                    for($s=1;$s<=10;$s++){
                        if($s==1){
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>720,
                            "morerate"=>720,
                            "restricts"=>100000,
                            "name"=>$i
                        ];
                    }
                        if($s==2){
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>20,
                            "morerate"=>20,
                            "restricts"=>100000,
                            "name"=>$i
                        ];
                        }
                        if($s==3){
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>120,
                            "morerate"=>120,
                            "restricts"=>100000,
                            "name"=>$i
                        ];
                        }
                        if($s==4){
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>65.5,
                            "morerate"=>65.5,
                            "restricts"=>100000,
                            "name"=>$i
                        ];
                        }
                        if($s==5){
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>32,
                            "morerate"=>32,
                            "restricts"=>100000,
                            "name"=>$i
                        ];
                        }
                        if($s==6){
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>52,
                            "morerate"=>52,
                            "restricts"=>100000,
                            "name"=>$i
                        ];
                        }
                        if($s==7){
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>168,
                            "morerate"=>168,
                            "restricts"=>100000,
                            "name"=>$i
                        ];
                        }   
                             
                    }
                } 
            }
            if($j==8){
                for($i=1;$i<=12;$i++){
                    for($s=1;$s<=1;$s++){
                        if($i==1){
                              $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5.85,
                                "morerate"=>5.85,
                                "restricts"=>100000,
                                "name"=>'红单'
                            ]; 
                        }
                        if($i==2){
                              $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5.85,
                                "morerate"=>5.85,
                                "restricts"=>100000,
                                "name"=>'红双'
                            ]; 
                        }
                        if($i==3){
                              $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5.85,
                                "morerate"=>5.85,
                                "restricts"=>100000,
                                "name"=>'红大'
                            ]; 
                        }
                        if($i==4){
                              $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5.85,
                                "morerate"=>5.85,
                                "restricts"=>100000,
                                "name"=>'红小'
                            ]; 
                        }
                        if($i==5){
                              $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5.85,
                                "morerate"=>5.85,
                                "restricts"=>100000,
                                "name"=>'蓝单'
                            ]; 
                        }
                        if($i==6){
                              $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5.85,
                                "morerate"=>5.85,
                                "restricts"=>100000,
                                "name"=>'蓝双'
                            ]; 
                        }
                        if($i==7){
                              $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5.85,
                                "morerate"=>5.85,
                                "restricts"=>100000,
                                "name"=>'蓝大'
                            ]; 
                        }
                        if($i==8){
                              $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5.85,
                                "morerate"=>5.85,
                                "restricts"=>100000,
                                "name"=>'蓝小'
                            ]; 
                        }
                        if($i==9){
                              $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5.85,
                                "morerate"=>5.85,
                                "restricts"=>100000,
                                "name"=>'绿单'
                            ]; 
                        }
                        if($i==10){
                              $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5.85,
                                "morerate"=>5.85,
                                "restricts"=>100000,
                                "name"=>'绿双'
                            ]; 
                        }
                        if($i==11){
                              $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5.85,
                                "morerate"=>5.85,
                                "restricts"=>100000,
                                "name"=>'绿大'
                            ]; 
                        }
                        if($i==12){
                              $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5.85,
                                "morerate"=>5.85,
                                "restricts"=>100000,
                                "name"=>'绿小'
                            ]; 
                        }  
                    }
                } 
            }
            if($j==9){
                for($i=1;$i<=50;$i++){
                    for($s=1;$s<=1;$s++){
                        if($i==1){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"鼠"
                            ]; 
                        }
                       if($i==2){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"牛"
                            ]; 
                        }
                        if($i==3){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"虎"
                            ]; 
                        }
                        if($i==4){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"兔"
                            ]; 
                        }
                        if($i==5){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"龙"
                            ]; 
                        }
                        if($i==6){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"蛇"
                            ]; 
                        }
                        if($i==7){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"马"
                            ]; 
                        }
                        if($i==8){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"羊"
                            ]; 
                        }
                        if($i==9){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"猴"
                            ]; 
                        }
                        if($i==10){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"鸡"
                            ]; 
                        }
                        if($i==11){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"狗"
                            ]; 
                        }
                        if($i==12){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"猪"
                            ]; 
                        }
                        if($i==13){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"234肖"
                            ]; 
                        }
                        if($i==14){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"5肖"
                            ]; 
                        }
                        if($i==15){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"6肖"
                            ]; 
                        }
                        if($i==16){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"7肖"
                            ]; 
                        }
                        if($i==17){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"单"
                            ]; 
                        }
                        if($i==18){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.9,
                                "morerate"=>1.9,
                                "restricts"=>100000,
                                "name"=>"双"
                            ]; 
                        }
                        if($i==19){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>150,
                                "morerate"=>150,
                                "restricts"=>100000,
                                "name"=>"0单"
                            ]; 
                        }
                        if($i==20){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>150,
                                "morerate"=>150,
                                "restricts"=>100000,
                                "name"=>"0双"
                            ]; 
                        }
                        if($i==21){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>150,
                                "morerate"=>150,
                                "restricts"=>100000,
                                "name"=>"0大"
                            ]; 
                        }
                        if($i==22){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>150,
                                "morerate"=>150,
                                "restricts"=>100000,
                                "name"=>"0小"
                            ]; 
                        }
                         if($i==23){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>20,
                                "morerate"=>20,
                                "restricts"=>100000,
                                "name"=>"1单"
                            ]; 
                        }
                        if($i==24){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>20,
                                "morerate"=>20,
                                "restricts"=>100000,
                                "name"=>"1双"
                            ]; 
                        }
                        if($i==25){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>20,
                                "morerate"=>20,
                                "restricts"=>100000,
                                "name"=>"1大"
                            ]; 
                        }
                        if($i==26){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>20,
                                "morerate"=>20,
                                "restricts"=>100000,
                                "name"=>"1小"
                            ]; 
                        }
                        if($i==27){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5,
                                "morerate"=>5,
                                "restricts"=>100000,
                                "name"=>"2单"
                            ]; 
                        }
                        if($i==28){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5,
                                "morerate"=>5,
                                "restricts"=>100000,
                                "name"=>"2双"
                            ]; 
                        }
                        if($i==29){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5,
                                "morerate"=>5,
                                "restricts"=>100000,
                                "name"=>"2大"
                            ]; 
                        }
                        if($i==30){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5,
                                "morerate"=>5,
                                "restricts"=>100000,
                                "name"=>"2小"
                            ]; 
                        }
                        if($i==31){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.5,
                                "morerate"=>2.5,
                                "restricts"=>100000,
                                "name"=>"3单"
                            ]; 
                        }
                        if($i==32){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.5,
                                "morerate"=>2.5,
                                "restricts"=>100000,
                                "name"=>"3双"
                            ]; 
                        }
                        if($i==33){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.5,
                                "morerate"=>2.5,
                                "restricts"=>100000,
                                "name"=>"3大"
                            ]; 
                        }
                        if($i==34){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.5,
                                "morerate"=>2.5,
                                "restricts"=>100000,
                                "name"=>"3小"
                            ]; 
                        }
                        if($i==35){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.8,
                                "morerate"=>2.8,
                                "restricts"=>100000,
                                "name"=>"4单"
                            ]; 
                        }
                        if($i==36){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.8,
                                "morerate"=>2.8,
                                "restricts"=>100000,
                                "name"=>"4双"
                            ]; 
                        }
                        if($i==37){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.8,
                                "morerate"=>2.8,
                                "restricts"=>100000,
                                "name"=>"4大"
                            ]; 
                        }
                        if($i==38){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.8,
                                "morerate"=>2.8,
                                "restricts"=>100000,
                                "name"=>"4小"
                            ]; 
                        }
                        if($i==39){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5,
                                "morerate"=>5,
                                "restricts"=>100000,
                                "name"=>"5单"
                            ]; 
                        }
                        if($i==40){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5,
                                "morerate"=>5,
                                "restricts"=>100000,
                                "name"=>"5双"
                            ]; 
                        }
                        if($i==41){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5,
                                "morerate"=>5,
                                "restricts"=>100000,
                                "name"=>"5大"
                            ]; 
                        }
                        if($i==42){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>5,
                                "morerate"=>5,
                                "restricts"=>100000,
                                "name"=>"5小"
                            ]; 
                        }
                        if($i==43){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>20,
                                "morerate"=>20,
                                "restricts"=>100000,
                                "name"=>"6单"
                            ]; 
                        }
                        if($i==44){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>20,
                                "morerate"=>20,
                                "restricts"=>100000,
                                "name"=>"6双"
                            ]; 
                        }
                        if($i==45){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>20,
                                "morerate"=>20,
                                "restricts"=>100000,
                                "name"=>"6大"
                            ]; 
                        }
                        if($i==46){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>20,
                                "morerate"=>20,
                                "restricts"=>100000,
                                "name"=>"6小"
                            ]; 
                        }
                        if($i==47){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>150,
                                "morerate"=>150,
                                "restricts"=>100000,
                                "name"=>"7单"
                            ]; 
                        }
                        if($i==48){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>150,
                                "morerate"=>150,
                                "restricts"=>100000,
                                "name"=>"7双"
                            ]; 
                        }
                        if($i==49){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>150,
                                "morerate"=>150,
                                "restricts"=>100000,
                                "name"=>"7大"
                            ]; 
                        }
                        if($i==50){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>150,
                                "morerate"=>150,
                                "restricts"=>100000,
                                "name"=>"7小"
                            ]; 
                        }
                    }
                } 
            }
            if($j==10){
                for($i=1;$i<=12;$i++){
                    for($s=1;$s<=4;$s++){
                        if($s==1){
                            $zz = 0;
                            if($i==1){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"鼠"
                            ]; 
                        }
                       if($i==2){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"牛"
                            ]; 
                        }
                        if($i==3){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"虎"
                            ]; 
                        }
                        if($i==4){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"兔"
                            ]; 
                        }
                        if($i==5){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"龙"
                            ]; 
                        }
                        if($i==6){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"蛇"
                            ]; 
                        }
                        if($i==7){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"马"
                            ]; 
                        }
                        if($i==8){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"羊"
                            ]; 
                        }
                        if($i==9){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"猴"
                            ]; 
                        }
                        if($i==10){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"鸡"
                            ]; 
                        }
                        if($i==11){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"狗"
                            ]; 
                        }
                        if($i==12){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"猪"
                            ]; 
                        }
                        }
                        if($s==2){
                            $zz = 12-4.72;
                              if($i==1){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"鼠"
                            ]; 
                        }
                       if($i==2){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"牛"
                            ]; 
                        }
                        if($i==3){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"虎"
                            ]; 
                        }
                        if($i==4){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"兔"
                            ]; 
                        }
                        if($i==5){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"龙"
                            ]; 
                        }
                        if($i==6){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"蛇"
                            ]; 
                        }
                        if($i==7){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"马"
                            ]; 
                        }
                        if($i==8){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"羊"
                            ]; 
                        }
                        if($i==9){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"猴"
                            ]; 
                        }
                        if($i==10){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"鸡"
                            ]; 
                        }
                        if($i==11){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"狗"
                            ]; 
                        }
                        if($i==12){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"猪"
                            ]; 
                        }
                        }
                        if($s==3){
                            $zz = 35.03-4.72;
                              if($i==1){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"鼠"
                            ]; 
                        }
                       if($i==2){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"牛"
                            ]; 
                        }
                        if($i==3){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"虎"
                            ]; 
                        }
                        if($i==4){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"兔"
                            ]; 
                        }
                        if($i==5){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"龙"
                            ]; 
                        }
                        if($i==6){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"蛇"
                            ]; 
                        }
                        if($i==7){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"马"
                            ]; 
                        }
                        if($i==8){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"羊"
                            ]; 
                        }
                        if($i==9){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"猴"
                            ]; 
                        }
                        if($i==10){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"鸡"
                            ]; 
                        }
                        if($i==11){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"狗"
                            ]; 
                        }
                        if($i==12){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"猪"
                            ]; 
                        }
                        }
                        if($s==4){
                            $zz = 117-4.72;
                              if($i==1){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"鼠"
                            ]; 
                        }
                       if($i==2){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"牛"
                            ]; 
                        }
                        if($i==3){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"虎"
                            ]; 
                        }
                        if($i==4){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"兔"
                            ]; 
                        }
                        if($i==5){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"龙"
                            ]; 
                        }
                        if($i==6){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"蛇"
                            ]; 
                        }
                        if($i==7){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"马"
                            ]; 
                        }
                        if($i==8){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"羊"
                            ]; 
                        }
                        if($i==9){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"猴"
                            ]; 
                        }
                        if($i==10){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"鸡"
                            ]; 
                        }
                        if($i==11){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"狗"
                            ]; 
                        }
                        if($i==12){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>4.72+$zz,
                                "morerate"=>4.72+$zz,
                                "restricts"=>100000,
                                "name"=>"猪"
                            ]; 
                        }
                        }                        
                        
                    }
                } 
            }
            if($j==11){
                for($i=1;$i<=10;$i++){
                    for($s=1;$s<=3;$s++){
                        if($s==1){
                            if($i==1){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>3.6,
                                "morerate"=>3.6,
                                "restricts"=>100000,
                                "name"=>"0尾"
                            ]; 
                        }
                       if($i==2){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>3.1,
                                "morerate"=>3.1,
                                "restricts"=>100000,
                                "name"=>"1尾"
                            ]; 
                        }
                        if($i==3){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>3.1,
                                "morerate"=>3.1,
                                "restricts"=>100000,
                                "name"=>"2尾"
                            ]; 
                        }
                        if($i==4){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>3.1,
                                "morerate"=>3.1,
                                "restricts"=>100000,
                                "name"=>"3尾"
                            ]; 
                        }
                        if($i==5){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>3.1,
                                "morerate"=>3.1,
                                "restricts"=>100000,
                                "name"=>"4尾"
                            ]; 
                        }
                        if($i==6){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>3.1,
                                "morerate"=>3.1,
                                "restricts"=>100000,
                                "name"=>"5尾"
                            ]; 
                        }
                        if($i==7){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>3.1,
                                "morerate"=>3.1,
                                "restricts"=>100000,
                                "name"=>"6尾"
                            ]; 
                        }
                        if($i==8){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>3.1,
                                "morerate"=>3.1,
                                "restricts"=>100000,
                                "name"=>"7尾"
                            ]; 
                        }
                        if($i==9){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>3.1,
                                "morerate"=>3.1,
                                "restricts"=>100000,
                                "name"=>"8尾"
                            ]; 
                        }
                        if($i==10){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>3.1,
                                "morerate"=>3.1,
                                "restricts"=>100000,
                                "name"=>"9尾"
                            ]; 
                        }
                          
                        }

                        if($s==2){
                            if($i==1){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>7.8,
                                "morerate"=>7.8,
                                "restricts"=>100000,
                                "name"=>"0尾"
                            ]; 
                        }
                       if($i==2){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>6.5,
                                "morerate"=>6.5,
                                "restricts"=>100000,
                                "name"=>"1尾"
                            ]; 
                        }
                        if($i==3){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>6.5,
                                "morerate"=>6.5,
                                "restricts"=>100000,
                                "name"=>"2尾"
                            ]; 
                        }
                        if($i==4){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>6.5,
                                "morerate"=>6.5,
                                "restricts"=>100000,
                                "name"=>"3尾"
                            ]; 
                        }
                        if($i==5){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>6.5,
                                "morerate"=>6.5,
                                "restricts"=>100000,
                                "name"=>"4尾"
                            ]; 
                        }
                        if($i==6){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>6.5,
                                "morerate"=>6.5,
                                "restricts"=>100000,
                                "name"=>"5尾"
                            ]; 
                        }
                        if($i==7){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>6.5,
                                "morerate"=>6.5,
                                "restricts"=>100000,
                                "name"=>"6尾"
                            ]; 
                        }
                        if($i==8){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>6.5,
                                "morerate"=>6.5,
                                "restricts"=>100000,
                                "name"=>"7尾"
                            ]; 
                        }
                        if($i==9){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>6.5,
                                "morerate"=>6.5,
                                "restricts"=>100000,
                                "name"=>"8尾"
                            ]; 
                        }
                        if($i==10){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>6.5,
                                "morerate"=>6.5,
                                "restricts"=>100000,
                                "name"=>"9尾"
                            ]; 
                        }
                        
                        
                        }
                        if($s==3){
                            if($i==1){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>18,
                                "morerate"=>18,
                                "restricts"=>100000,
                                "name"=>"0尾"
                            ]; 
                        }
                       if($i==2){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>15,
                                "morerate"=>15,
                                "restricts"=>100000,
                                "name"=>"1尾"
                            ]; 
                        }
                        if($i==3){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>15,
                                "morerate"=>15,
                                "restricts"=>100000,
                                "name"=>"2尾"
                            ]; 
                        }
                        if($i==4){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>15,
                                "morerate"=>15,
                                "restricts"=>100000,
                                "name"=>"3尾"
                            ]; 
                        }
                        if($i==5){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>15,
                                "morerate"=>15,
                                "restricts"=>100000,
                                "name"=>"4尾"
                            ]; 
                        }
                        if($i==6){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>15,
                                "morerate"=>15,
                                "restricts"=>100000,
                                "name"=>"5尾"
                            ]; 
                        }
                        if($i==7){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>15,
                                "morerate"=>15,
                                "restricts"=>100000,
                                "name"=>"6尾"
                            ]; 
                        }
                        if($i==8){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>15,
                                "morerate"=>15,
                                "restricts"=>100000,
                                "name"=>"7尾"
                            ]; 
                        }
                        if($i==9){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>15,
                                "morerate"=>15,
                                "restricts"=>100000,
                                "name"=>"8尾"
                            ]; 
                        }
                        if($i==10){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>15,
                                "morerate"=>15,
                                "restricts"=>100000,
                                "name"=>"9尾"
                            ]; 
                        }
                       
                        }
                        
                    }
                } 
            }
            if($j==12){
                for($i=1;$i<=12;$i++){
                    for($s=1;$s<=1;$s++){
                        if($i==1){
                            $zz = "鼠";
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>11.65,
                            "morerate"=>11.65,
                            "restricts"=>100000,
                            "name"=>$zz
                        ];  
                        }
                        if($i==2){
                            $zz = "牛";
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>11.65,
                            "morerate"=>11.65,
                            "restricts"=>100000,
                            "name"=>$zz
                        ];  
                        }
                        if($i==3){
                            $zz = "虎";
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>11.65,
                            "morerate"=>11.65,
                            "restricts"=>100000,
                            "name"=>$zz
                        ];  
                        }
                        if($i==4){
                            $zz = "兔";
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>11.65,
                            "morerate"=>11.65,
                            "restricts"=>100000,
                            "name"=>$zz
                        ];  
                        }
                        if($i==5){
                            $zz = "龙";
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>11.65,
                            "morerate"=>11.65,
                            "restricts"=>100000,
                            "name"=>$zz
                        ];  
                        }
                        if($i==6){
                            $zz = "蛇";
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>11.65,
                            "morerate"=>11.65,
                            "restricts"=>100000,
                            "name"=>$zz
                        ];  
                        }
                        if($i==7){
                            $zz = "马";
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>11.65,
                            "morerate"=>11.65,
                            "restricts"=>100000,
                            "name"=>$zz
                        ];  
                        }
                        if($i==8){
                            $zz = "羊";
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>11.65,
                            "morerate"=>11.65,
                            "restricts"=>100000,
                            "name"=>$zz
                        ];  
                        }
                        if($i==9){
                            $zz = "猴";
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>11.65,
                            "morerate"=>11.65,
                            "restricts"=>100000,
                            "name"=>$zz
                        ];  
                        }
                        if($i==10){
                            $zz = "鸡";
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>11.65,
                            "morerate"=>11.65,
                            "restricts"=>100000,
                            "name"=>$zz
                        ];  
                        }
                        if($i==11){
                            $zz = "狗";
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>11.65,
                            "morerate"=>11.65,
                            "restricts"=>100000,
                            "name"=>$zz
                        ];  
                        }
                        if($i==12){
                            $zz = "猪";
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>11.65,
                            "morerate"=>11.65,
                            "restricts"=>100000,
                            "name"=>$zz
                        ];  
                        }
                        
                           
                    }
                } 
            }
            if($j==13){
                for($i=1;$i<=27;$i++){
                    for($s=1;$s<=2;$s++){
                        if($s==1){
                            if($i==1){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.097,
                                "morerate"=>2.097,
                                "restricts"=>100000,
                                "name"=>"鼠"
                            ]; 
                        }
                       if($i==2){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.097,
                                "morerate"=>2.097,
                                "restricts"=>100000,
                                "name"=>"牛"
                            ]; 
                        }
                        if($i==3){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.097,
                                "morerate"=>2.097,
                                "restricts"=>100000,
                                "name"=>"虎"
                            ]; 
                        }
                        if($i==4){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.097,
                                "morerate"=>2.097,
                                "restricts"=>100000,
                                "name"=>"兔"
                            ]; 
                        }
                        if($i==5){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.097,
                                "morerate"=>2.097,
                                "restricts"=>100000,
                                "name"=>"龙"
                            ]; 
                        }
                        if($i==6){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.097,
                                "morerate"=>2.097,
                                "restricts"=>100000,
                                "name"=>"蛇"
                            ]; 
                        }
                        if($i==7){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.097,
                                "morerate"=>2.097,
                                "restricts"=>100000,
                                "name"=>"马"
                            ]; 
                        }
                        if($i==8){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.097,
                                "morerate"=>2.097,
                                "restricts"=>100000,
                                "name"=>"羊"
                            ]; 
                        }
                        if($i==9){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.097,
                                "morerate"=>2.097,
                                "restricts"=>100000,
                                "name"=>"猴"
                            ]; 
                        }
                        if($i==10){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.097,
                                "morerate"=>2.097,
                                "restricts"=>100000,
                                "name"=>"鸡"
                            ]; 
                        }
                        if($i==11){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.097,
                                "morerate"=>2.097,
                                "restricts"=>100000,
                                "name"=>"狗"
                            ]; 
                        }
                        if($i==12){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.097,
                                "morerate"=>2.097,
                                "restricts"=>100000,
                                "name"=>"猪"
                            ]; 
                        }
                        if($i==13){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.1,
                                "morerate"=>2.1,
                                "restricts"=>100000,
                                "name"=>'0尾'
                            ]; 
                        }
                        if($i==14){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.975,
                                "morerate"=>1.975,
                                "restricts"=>100000,
                                "name"=>'1尾'
                            ]; 
                        }
                        if($i==15){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.975,
                                "morerate"=>1.975,
                                "restricts"=>100000,
                                "name"=>'2尾'
                            ]; 
                        }
                        if($i==16){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.975,
                                "morerate"=>1.975,
                                "restricts"=>100000,
                                "name"=>'3尾'
                            ]; 
                        }
                        if($i==17){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.975,
                                "morerate"=>1.975,
                                "restricts"=>100000,
                                "name"=>'4尾'
                            ]; 
                        }
                        if($i==18){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.795,
                                "morerate"=>1.795,
                                "restricts"=>100000,
                                "name"=>'5尾'
                            ]; 
                        }
                        if($i==19){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.795,
                                "morerate"=>1.795,
                                "restricts"=>100000,
                                "name"=>'6尾'
                            ]; 
                        }
                        if($i==20){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.795,
                                "morerate"=>1.795,
                                "restricts"=>100000,
                                "name"=>'7尾'
                            ]; 
                        }if($i==21){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.795,
                                "morerate"=>1.795,
                                "restricts"=>100000,
                                "name"=>'8尾'
                            ]; 
                        }
                        if($i==22){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.795,
                                "morerate"=>1.795,
                                "restricts"=>100000,
                                "name"=>'9尾'
                            ]; 
                        }
                        if($i==23){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.87,
                                "morerate"=>2.87,
                                "restricts"=>100000,
                                "name"=>'红'
                            ]; 
                        }
                        if($i==24){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.88,
                                "morerate"=>2.88,
                                "restricts"=>100000,
                                "name"=>'蓝'
                            ]; 
                        }
                        if($i==25){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.87,
                                "morerate"=>2.87,
                                "restricts"=>100000,
                                "name"=>'绿'
                            ]; 
                        }
                        if($i==26){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>22,
                                "morerate"=>22,
                                "restricts"=>100000,
                                "name"=>'和局'
                            ]; 
                        }
                        }
                     if($s==2){
                        if($i==1){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"鼠"
                            ]; 
                        }
                       if($i==2){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"牛"
                            ]; 
                        }
                        if($i==3){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"虎"
                            ]; 
                        }
                        if($i==4){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"兔"
                            ]; 
                        }
                        if($i==5){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"龙"
                            ]; 
                        }
                        if($i==6){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"蛇"
                            ]; 
                        }
                        if($i==7){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"马"
                            ]; 
                        }
                        if($i==8){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"羊"
                            ]; 
                        }
                        if($i==9){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"猴"
                            ]; 
                        }
                        if($i==10){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"鸡"
                            ]; 
                        }
                        if($i==11){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"狗"
                            ]; 
                        }
                        if($i==12){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.85,
                                "morerate"=>1.85,
                                "restricts"=>100000,
                                "name"=>"猪"
                            ]; 
                        }
                        if($i==13){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.1,
                                "morerate"=>2.1,
                                "restricts"=>100000,
                                "name"=>'0尾'
                            ]; 
                        }
                        if($i==14){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.975,
                                "morerate"=>1.975,
                                "restricts"=>100000,
                                "name"=>'1尾'
                            ]; 
                        }
                        if($i==15){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.975,
                                "morerate"=>1.975,
                                "restricts"=>100000,
                                "name"=>'2尾'
                            ]; 
                        }
                        if($i==16){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.975,
                                "morerate"=>1.975,
                                "restricts"=>100000,
                                "name"=>'3尾'
                            ]; 
                        }
                        if($i==17){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.975,
                                "morerate"=>1.975,
                                "restricts"=>100000,
                                "name"=>'4尾'
                            ]; 
                        }
                        if($i==18){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.795,
                                "morerate"=>1.795,
                                "restricts"=>100000,
                                "name"=>'5尾'
                            ]; 
                        }
                        if($i==19){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.795,
                                "morerate"=>1.795,
                                "restricts"=>100000,
                                "name"=>'6尾'
                            ]; 
                        }
                        if($i==20){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.795,
                                "morerate"=>1.795,
                                "restricts"=>100000,
                                "name"=>'7尾'
                            ]; 
                        }if($i==21){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.795,
                                "morerate"=>1.795,
                                "restricts"=>100000,
                                "name"=>'8尾'
                            ]; 
                        }
                        if($i==22){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>1.795,
                                "morerate"=>1.795,
                                "restricts"=>100000,
                                "name"=>'9尾'
                            ]; 
                        }
                        if($i==23){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.87,
                                "morerate"=>2.87,
                                "restricts"=>100000,
                                "name"=>'红'
                            ]; 
                        }
                        if($i==24){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.88,
                                "morerate"=>2.88,
                                "restricts"=>100000,
                                "name"=>'蓝'
                            ]; 
                        }
                        if($i==25){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>2.87,
                                "morerate"=>2.87,
                                "restricts"=>100000,
                                "name"=>'绿'
                            ]; 
                        }
                        if($i==26){
                               $result[] = [
                                "andicap" =>1,
                                "bet"=>$j,
                                "colums"=>$s,
                                "bets"=>$i,
                                "ra"=>22,
                                "morerate"=>22,
                                "restricts"=>100000,
                                "name"=>'和局'
                            ]; 
                        }
                     }

                    }
                } 
            }
            if($j==14){
                for($i=1;$i<=49;$i++){
                    for($s=1;$s<=8;$s++){
                        if($s==1){
                            $zz=2.2;
                             $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>$zz,
                            "morerate"=>$zz,
                            "restricts"=>100000,
                            "name"=>$i
                        ]; 
                        }
                        if($s==2){
                            $zz=2.6;
                             $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>$zz,
                            "morerate"=>$zz,
                            "restricts"=>100000,
                            "name"=>$i
                        ]; 
                        }
                        if($s==3){
                            $zz=3.11;
                             $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>$zz,
                            "morerate"=>$zz,
                            "restricts"=>100000,
                            "name"=>$i
                        ]; 
                        }
                        if($s==4){
                            $zz=3.73;
                             $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>$zz,
                            "morerate"=>$zz,
                            "restricts"=>100000,
                            "name"=>$i
                        ]; 
                        }
                        if($s==5){
                            $zz=4.51;
                             $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>$zz,
                            "morerate"=>$zz,
                            "restricts"=>100000,
                            "name"=>$i
                        ]; 
                        }
                        if($s==6){
                            $zz=5.41;
                             $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>$zz,
                            "morerate"=>$zz,
                            "restricts"=>100000,
                            "name"=>$i
                        ]; 
                        }
                        if($s==7){
                            $zz=6.35;
                             $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>$zz,
                            "morerate"=>$zz,
                            "restricts"=>100000,
                            "name"=>$i
                        ]; 
                        }
                        if($s==8){
                            $zz=7.5;
                             $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>$zz,
                            "morerate"=>$zz,
                            "restricts"=>100000,
                            "name"=>$i
                        ]; 
                        }
                           
                    }
                } 
            }
            if($j==15){
                for($i=1;$i<=49;$i++){
                    for($s=1;$s<=4;$s++){
                        if($s==1){
                            $zz=3.3;
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>$zz,
                            "morerate"=>$zz,
                            "restricts"=>100000,
                            "name"=>$i
                        ]; 
                        }
                        if($s==2){
                            $zz=2.8;
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>$zz,
                            "morerate"=>$zz,
                            "restricts"=>100000,
                            "name"=>$i
                        ]; 
                        }
                        if($s==3){
                            $zz=2.3;
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>$zz,
                            "morerate"=>$zz,
                            "restricts"=>100000,
                            "name"=>$i
                        ]; 
                        }
                        if($s==4){
                            $zz=2;
                            $result[] = [
                            "andicap" =>1,
                            "bet"=>$j,
                            "colums"=>$s,
                            "bets"=>$i,
                            "ra"=>$zz,
                            "morerate"=>$zz,
                            "restricts"=>100000,
                            "name"=>$i
                        ]; 
                        }
                            
                    }
                } 
            }






        }
        
       
        
        $stime = time();
        $sql1 = "truncate table rate";
        Db::execute($sql1);
        // 'insert into jiangrate(name,topprice,moneys,downrate) values("特码","100000","0.5","20"),("特码单双","300000","0.01","1"),("特码大小","300000","0.01","1"),("特码合码单双","200000","0.01","1"),("正码","100000","0.02","1"),("总和单双","150000","0.02","1"),("总和大小","150000","0.02","1"),("特码色波","200000","0.02","1"),("特码生肖","100000","0.1","1"),("正码1-6单双","200000","0.01","1"),("正码1-6大小","200000","0.01","1"),("正码1-6色波","150000","0.02","1"),("正码1-6合数","150000","0.02","1"),("半波","100000","0.01","1"),("一肖[中]","300000","0.01","1"),("尾数","250000","0.01","1"),("七色波","100000","0.01","1"),("正特码","100000","0.2","25"),("特码合码大小","130000","0.01","1"),("特码尾数大小","130000","0.01","1"),("特码半特","100000","0.01","1"),("特码头数","100000","0.1","1"),("特码尾数","100000","0.1","1"),("总肖","100000","0.01","1"),("总肖单双","100000","0.01","1"),("正肖","100000","0.01","1"),("一肖[不中]","200000","0.01","1")'
        $sql = "insert into rate(andicap,bet,colums,bets,ra,morerate,restricts,name) values";
        foreach ($result as $key => $item) {
           $sql .= "('".$item['andicap']."','".$item['bet']."','".$item['colums']."','".$item['bets']."','".$item['ra']."','".$item['morerate']."','".$item['restricts']."','".$item['name']."'),";
        }
       $sql = rtrim($sql, ','); 
        Db::execute($sql);
        echo time()-$stime;
        exit();
    }

}